XML Externalization Built into Compiler Front-ends Using A Parser Generator

نویسنده

  • Kazuaki Maeda
چکیده

This paper describes XML externalization built into compiler front-ends and its application to quick reverse engineering tool development. A parser generator MoJay was developed to build XML externalization functionality into compiler front-ends. After replacing the original parser generator with MoJay, generating a parser using it, and modifying a few lines of source code in the compiler, we were able to obtain a special compiler that externalizes three types of information in the form of XML documents, namely, lexical information, syntactic information, and parse tree. The syntactic information was applied to develop a reverse engineering tool for C#. The tool shows a performance penalty from the viewpoint of the generated XML document size. However, even with a storage penalty, the quick development is a far superior option. Index Terms — parser generator, reverse engineering tool, XML, C#

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Efficient XML Parser Generator Using Compiler Compiler Technique

This paper describes design issues and experiment results of an efficient XML parser generator, Xsong. A traditional compiler construction technique is applied to Xsong so that it realizes both expressiveness and efficiency for parsing XML documents. To compare with the performance of DOM based programs, SAX based programs and a program generated by Xsong, experiments were designed. The experim...

متن کامل

JastAdd - a Java-based system for implementing front ends

We describe JastAdd, a Java-based system for specifying and implementing the frontend parts of a compiler that follow parsing. The system is built on top of a traditional Java parser generator which is used for parsing and treebuilding. JastAdd adds facilities for specifying and generating object-oriented abstract syntax trees with both declarative behavior (using Reference Attributedsyntax tre...

متن کامل

Building XML-driven application generators with compiler construction tools

This paper describes how to use conventional compiler construction tools, and parser generators in particular, to build XMLdriven application generators. In our approach, the document interface is provided by a standard stream-oriented XML processing framework (e.g., SAX or StAX). This framework is used to program a generic, customizable XML scanner that transforms documents into streams of sui...

متن کامل

PAPAGENO: A Parallel Parser Generator for Operator Precedence Grammars

In almost all language processing applications, languages are parsed employing classical algorithms (such as the LR(1) parsers generated by Bison), which are sequential due to their left-to-right state-dependent nature. Although early theoretical studies on parallel parsing algorithms delineated potential speedups on abstract parallel machines using a data-parallel approach, practical developme...

متن کامل

March 1999 { Second Workshop on Attribute Grammars and Their Applications { Waga99 Adding Semantics to Xml

Starting form the analogy between a document tagged by a markup language (XML, SGML) and a source string generated by a BNF grammar, we argue that XML parsers should beneet from the addition of semantic attributes and functions. Currently XML only includes initialized lexical attributes. By our approach a XML parser would be extended into a syntax-directed translator. Deep transformations of a ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007